'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: study_Tuple.py
* @Time: 2025/6/22
* @All Rights Reserve By Brtc
'''
# 元组的定义
# tuple = （元素1， 元素2 ， 元素三）

tuple_test = ("张三","李四", 1,2 ,3,4)
print("type(tuple_test) ", type(tuple_test))

# 元组的访问， 通过下标去访问的

print(tuple_test[0])
print(tuple_test[1])
print(tuple_test[2])
print(tuple_test[3])

# 查找元素的下标
print(tuple_test.index("李四"))# 如果有相同元素 返回最近元素的下标
# 元组的特点， 被构造后是不能被修改的
# del tuple_test[0]

# 统计重复元素的个数
tuple_num = (1,1,1,1,6,6,6,6,66,7,7,7,7,7,7,1,1,1)
print(tuple_num.count(1))




